package cn.com.shopec.erp.product.entity;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

import org.hibernate.annotations.GenericGenerator;

@Entity
@Table(name = "TBL_BRAND")
public class Brand implements Serializable {

    /** id **/
    private String id;

    /** 品牌编号 **/
    private String brandNo;

    /** 品牌名称 **/
    private String brandName;

    /** 品牌网址 **/
    private String brandUrl;

    /** 品牌描述 **/
    private String description;

    /** 创建时间 **/
    private String createTime;

    /** 更新时间 **/
    private String updateTime;

    /** 删除标志 **/
    private Integer deleteFlag;
    
	/** 编号 **/
    private String no;
    
    public Brand() {
    }

    public Brand(String id, String brandNo, String brandName) {
        this.id = id;
        this.brandNo = brandNo;
        this.brandName = brandName;
    }

    public Brand(String id, String brandNo, String brandName, String description, Integer deleteFlag,
            String createTime, String updateTime) {
        this.id = id;
        this.brandNo = brandNo;
        this.brandName = brandName;
        this.description = description;
        this.deleteFlag = deleteFlag;
        this.createTime = createTime;
        this.updateTime = updateTime;
    }

    @GenericGenerator(name = "generator", strategy = "uuid.hex")
    @GeneratedValue(generator = "generator")
    @Id
    @Column(name = "id", unique = true, nullable = false, length = 32)
    public String getId() {
        return this.id;
    }

    public void setId(String id) {
        this.id = id;
    }

    @Column(name = "brand_no")
    public String getBrandNo() {
        return this.brandNo;
    }

    public void setBrandNo(String brandNo) {
        this.brandNo = brandNo;
    }

    @Column(name = "brand_name")
    public String getBrandName() {
        return this.brandName;
    }

    public void setBrandName(String brandName) {
        this.brandName = brandName;
    }

    @Column(name = "brand_url")
    public String getBrandUrl() {
        return this.brandUrl;
    }

    public void setBrandUrl(String brandUrl) {
        this.brandUrl = brandUrl;
    }

    @Column(name = "decription")
    public String getDescription() {
        return this.description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    @Column(name = "create_time")
    public String getCreateTime() {
        return this.createTime;
    }

    public void setCreateTime(String createTime) {
        this.createTime = createTime;
    }

    @Column(name = "update_time")
    public String getUpdateTime() {
        return this.updateTime;
    }

    public void setUpdateTime(String updateTime) {
        this.updateTime = updateTime;
    }

    @Column(name = "delete_flag")
    public Integer getDeleteFlag() {
        return this.deleteFlag;
    }

    public void setDeleteFlag(Integer deleteFlag) {
        this.deleteFlag = deleteFlag;
    }
    
    @Column(name = "no")
    public String getNo() {
		return no;
	}

	public void setNo(String no) {
		this.no = no;
	}
}
